package com.nuaa.qianru.run;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

@Component
public class TrackMonitor implements CommandLineRunner, Ordered {
    @Autowired
    private Camera1 c1;
    @Autowired
    private Camera2 c2;
    @Override
    public void run(String... args) throws Exception {
        c1.start();
        c2.start();

    }

    @Override
    public int getOrder() {
        return 6;
    }

}
